#ifndef __CONNPOOL_H__
#define __CONNPOOL_H__


#include "common.h"
#include "utils.h"
#include "log.h"

/*
 *@brief:
 */
int initConnPool(struct workerPthread_ctx **ctx, size_t maxConnSize);
/*
 *@
 */
int addConnection(struct workerPthread_ctx *ctx, int fd);

/*
 *@
 */
int delConnection(struct workerPthread_ctx *ctx, int fd);

/*
 *
 */
void ConnPoolDeinit(struct workerPthread_ctx *ctx);
size_t writeDataToClient(int fd, unsigned char *buf, size_t len);
size_t readDataFromClient(int fd, unsigned char *buf, size_t len);























#endif 
